home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / nct02120.geo / 00173.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  3.7 KB  |  161 lines

  1. on startMovie
  2.   Set_CDcounter(13)
  3.   initLesson()
  4.   CheckForTagWd()
  5. end
  6.  
  7. on HideLastStep
  8.   if (Get_NEXT() = 3) or (Get_NEXT() = 6) or (Get_NEXT() = 10) or (Get_NEXT() = 12) then
  9.     UpdateCursors(18, 0)
  10.   end if
  11. end
  12.  
  13. on TheinitCursor
  14.   initCursorCastNum()
  15.   initCursorList(1)
  16.   set CursorCastNum to getCursor(2)
  17.   cursor([CursorCastNum, CursorCastNum + 1])
  18. end
  19.  
  20. on checkScreenStatus
  21.   CheckRollOver()
  22.   CheckSnakeStatus()
  23.   go(the frame)
  24. end
  25.  
  26. on BlinkNext
  27.   if (the timer > getTimer()) and not soundBusy(2) then
  28.     startTimer()
  29.     if the name of cast the castNum of sprite get_NEXTSprite() = "NEXT" then
  30.       set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT_E"
  31.     else
  32.       set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT"
  33.     end if
  34.   end if
  35. end
  36.  
  37. on PressBtn theBtn
  38.   Set_PressedLast(theBtn)
  39.   switchButt(Get_AnsSprite() + theBtn - 1, "down" & theBtn, "HandleBtn" && theBtn)
  40. end
  41.  
  42. on GoNext
  43.   if not get_Disabled() then
  44.     sound stop 2
  45.     UpdateCursors(18, 3)
  46.     if Get_NEXT() = 1 then
  47.       go("t1")
  48.     else
  49.       if Get_NEXT() = 2 then
  50.         go("t2")
  51.       else
  52.         if Get_NEXT() = 3 then
  53.           go("t3")
  54.         else
  55.           if Get_NEXT() = 4 then
  56.             go("t4")
  57.           else
  58.             if Get_NEXT() = 5 then
  59.               go("t5")
  60.             else
  61.               if Get_NEXT() = 6 then
  62.                 go("t6")
  63.               else
  64.                 if Get_NEXT() = 7 then
  65.                   go("t7")
  66.                 else
  67.                   if Get_NEXT() = 8 then
  68.                     go("t8")
  69.                   else
  70.                     if Get_NEXT() = 9 then
  71.                       go("t9")
  72.                     else
  73.                       if Get_NEXT() = 10 then
  74.                         go("t10")
  75.                       else
  76.                         if Get_NEXT() = 11 then
  77.                           go("t11")
  78.                         else
  79.                           if Get_NEXT() = 12 then
  80.                             go("t12")
  81.                           else
  82.                             if Get_NEXT() = 13 then
  83.                               go("t13")
  84.                             else
  85.                               if Get_NEXT() = 14 then
  86.                                 GoNextMovie()
  87.                               end if
  88.                             end if
  89.                           end if
  90.                         end if
  91.                       end if
  92.                     end if
  93.                   end if
  94.                 end if
  95.               end if
  96.             end if
  97.           end if
  98.         end if
  99.       end if
  100.     end if
  101.     Set_NEXT(Get_NEXT() + 1)
  102.   end if
  103. end
  104.  
  105. on stopMovie
  106.   sound stop 1
  107.   unLoad()
  108.   setEmptyCursor()
  109. end
  110.  
  111. on GoNextMovie
  112.   PlaySound("GOSOUND.SO1")
  113.   SaveHilite()
  114.   Add_CDcounter(1)
  115.   set cdNum to Get_CDcounter()
  116.   set movieName to item cdNum of Get_CurrentSnakeScreens()
  117.   go("INIT" & Get_ScreenSubject(), movieName & ".GEO")
  118. end
  119.  
  120. on checkDoubleClick spriteNum
  121.   global firstClickedSprite
  122.   set theClick to 0
  123.   if not get_oneClick() then
  124.     set firstClickedSprite to spriteNum
  125.     set_oneClick(1)
  126.     set_lastClickTimer(the ticks)
  127.   else
  128.     if get_oneClick() and ((the ticks - get_lastClickTimer()) < 20) and (firstClickedSprite = spriteNum) then
  129.       set_lastClickTimer(0)
  130.       set theClick to 1
  131.     else
  132.       if (the ticks - get_lastClickTimer()) > 19 then
  133.         set firstClickedSprite to spriteNum
  134.         set_oneClick(1)
  135.         set_lastClickTimer(the ticks)
  136.       end if
  137.     end if
  138.   end if
  139.   return theClick
  140. end
  141.  
  142. on set_oneClick bool
  143.   global oneClick
  144.   set oneClick to bool
  145. end
  146.  
  147. on get_oneClick
  148.   global oneClick
  149.   return oneClick
  150. end
  151.  
  152. on set_lastClickTimer int
  153.   global lastClickTimer
  154.   set lastClickTimer to int
  155. end
  156.  
  157. on get_lastClickTimer
  158.   global lastClickTimer
  159.   return lastClickTimer
  160. end
  161.